﻿using MvvmFx.Common.ViewModels;
using MvvmFx.Common.ViewModels.Commands;

namespace MvvmFx.Samples.HowTos.CommandHandlers.ViewModels
{
    public class CommandHandlersSampleViewModel : ViewModelBase
    {
        private readonly ExampleTypedCommand _typedCommand;
        private readonly RoutedViewModelCommand _routedCommand;

        public CommandHandlersSampleViewModel()
        {
            _routedCommand = new RoutedViewModelCommand();
            _typedCommand = new ExampleTypedCommand();
        }

        /// <summary>
        /// Gets the value of the <see cref=”RoutedCommand”/> property.
        /// </summary>
        public RoutedViewModelCommand RoutedCommand
        {
            get { return _routedCommand; }
        }

        /// <summary>
        /// Gets the value of the <see cref=”TypedCommand”/> property.
        /// </summary>
        public ExampleTypedCommand TypedCommand
        {
            get { return _typedCommand; }
        }
    }

}
